# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=grcov
pkgver=0.5.15
pkgrel=0
pkgdesc="Rust tool to collect and aggregate code coverage data"
url="https://github.com/eqrion/cbindgen"
arch="x86_64 armv7 armhf aarch64 x86 ppc64le" # Limited by cargo
license="MPL-2.0"
depends="gcc" # gcov
makedepends="cargo"
options="!check" # Failing due to utf-8 (locale?)
source="$pkgname-$pkgver.tar.gz::https://github.com/mozilla/grcov/archive/v$pkgver.tar.gz"

build() {
	cargo build --release --locked --verbose
}

check() {
	cargo test --release --locked --verbose
}

package() {
	install -Dm0755 target/release/grcov -t "$pkgdir"/usr/bin
}

sha512sums="84e1ad6a9658590a52595fae38955931f359efc1f25931f6953934784b1c58ad9d27da057130dbe3dc09908589d79aa5b4cb4a7b4aae425b627487c4bf9af240  grcov-0.5.15.tar.gz"
